<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>TravelDream</title>
	<link rel="stylesheet" type="text/css" href="style/home.css" />
</h:head>
<h:body>
<div id="main">
		<div id="upper">
			<div id="logo"><a href="home.xhtml"><img id="logo-img" src="img/logo.png"/></a></div>
			<div id="login-up">
				<form method="post" action="j_security_check">
				<div id="login-content1">
				<input type="text" id="input-username" name="j_username" placeholder="Username"/><br /></div>
				<div id="login-content2">
				<input type="password" id="input-password" name="j_password" placeholder="Password"/>
				<input type="submit" value="Login" />
				</div></form>
			</div>
		</div>
		<div id="center">
			<h:form rendered="#{not empty request.remoteUser}" >
				<p:outputLabel value="Benvenuto, sei loggato come: #{utenteBean.idUtente}" /> <br />
				<h:commandButton action="#{logoutBean.logout()}" value="Logout" /> 
			</h:form>
		<div id="center-sx"><img id="plane-img" src="img/planetrace.png"/></div>
		<div id="center-dx">
		<div id="login-down">
			<br />Non sei ancora iscritto? Clicca qui per registrarti!
		<div id="login-content4"><h:link id="button" outcome="registrazione.jsf"><input type="submit" value="Registrati" /></h:link></div>
		</div>
		</div>
		</div>
		<div id="footer">
        	<h:link outcome="admin/PaginaPrincipale" value="Accesso Admin | " />
        	<h:link outcome="utenti/PaginaPrincipale?user=true" value="Accesso Clienti | " />
        	<h:link outcome="dipendenti/PaginaPrincipale" value="Accesso Dipendenti" /> 
		</div>
	</div>
</h:body>
</html>